export default {
  plugins: [
    [
      'umi-plugin-react',
      {
        dva: true,
        antd: true,
      },
    ],
  ],
  routes: [
    {
      path: '/login',
      component: './login',
    },
    {
      path: '/goods',
      component: './goods',
    },
    {
      path: '/',
      component: './index',
    },
    {
      path: '/about',
      component: './about',
      // 这里相对根目录，文件名后缀不能少}
      Routes: ['./routes/PrivateRoute.js'],
    },
    {
      path: '/users',
      component: './users/_layout',
      routes: [
        {
          path: '/users/',
          component: './users/index',
        },
        {
          path: '/users/:id',
          component: './users/$id',
        },
        {
          component: './NotFound',
        },
      ],
    },
    {
      component: './NotFound', //   以pages为根目录
    },
  ],
};
